﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson.Serialization.Options;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCMongoEntity.StatisticsRequest
{
    /// <summary>
    /// 统计请求
    /// </summary>
    public class StatisticsRequestEntity: MongoDBBaseEntity
    {
        /// <summary>
        /// 访问接口地址
        /// </summary>
        [BsonElement("AccessApiUrl")]
        public string AccessApiUrl { get; set; }
        /// <summary>
        /// 访问接口名称
        /// </summary>
        [BsonElement("AccessApiName")]
        public string AccessApiName { get; set; }
        /// <summary>
        /// 控制器名称
        /// </summary>
        [BsonElement("ControllerName")]
        public string ControllerName { get; set; }
        /// <summary>
        /// 行为名称
        /// </summary>
        [BsonElement("ActionName")]
        public string ActionName { get; set; }
        /// <summary>
        /// 访问接口参数
        /// </summary>
        [BsonElement("Parameters")]
        public string Parameters { get; set; }
        /// <summary>
        /// 访问次数
        /// </summary>
        [BsonElement("AccessTimes")]
        public int AccessTimes { get; set; }
        /// <summary>
        /// 访问成功次数
        /// </summary>
        [BsonElement("SuccessTimes")]
        public int SuccessTimes { get; set; }
        /// <summary>
        /// 访问失败次数
        /// </summary>
        [BsonElement("ErrorTimes")]
        public int ErrorTimes { get; set; }
        /// <summary>
        /// 年
        /// </summary>
        [BsonElement("Year")]
        public int Year { get; set; }
        /// <summary>
        /// 月
        /// </summary>
        [BsonElement("Month")]
        public int Month { get; set; }
        /// <summary>
        /// 日
        /// </summary>
        [BsonElement("Day")]
        public int Day { get; set; }
    }
}
